package com.sc.nft.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.ClassifyType;
import com.sc.nft.enums.OrderStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liGen
 * @version 1.0
 * @date 2023/10/21 4:52 下午
 */
@Data
public class OrderDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("用户Id")
    private Long userId;
    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    private String userTel;
    @ApiModelProperty("商品Id")
    private Long productId;

    @ApiModelProperty("一级标题")
    private String firstTitle;
    @ApiModelProperty("下单数量")
    private Integer count;
    @ApiModelProperty("订单编号")
    private String orderNo;
    @ApiModelProperty("商品类型")
    private ClassifyType typeClassify;
    @ApiModelProperty("封面图片地址")
    private String imageUrl;
    @ApiModelProperty("商品价格")
    private BigDecimal productPrice;
    @ApiModelProperty("状态")
    private OrderStatusEnum status;
    @ApiModelProperty("下单时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;
    @ApiModelProperty("订单关闭时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;
    @ApiModelProperty("付款时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;
}
